package com.ouwen.smartpay.openapi.order;

import com.fm.core.common.enums.TranStatus;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author <a href="http://youngitman.tech">青年IT男</a>
 * @version v1.0.0
 * @className ItemOrder
 * @description 异步通知订单明细
 * @JunitTest: {@link  }
 * @date 2020-04-27 09:36
 **/
@Setter
@Getter
public class NotifyOrderItem implements Serializable {

    @NotEmpty(message = "原订单请求调用流水号不能为空")
    private String requestNo;

    @NotEmpty(message = "商户订单号不能为空")
    private String merchOrderNo;

    @NotEmpty(message = "交易状态不能为空")
    private TranStatus tranStatus;

    @NotEmpty(message = "交易日期不能为空")
    private Date tranDate;

    /*** 业务状态码 */
    @NotEmpty(message = "交易结果码不能为空")
    private String respCode;

    private String tranDesc;

    /*** 业务状态码描述 */
    private String respMsg;

    /*** 详细描述 */
    private String description;

}
